import 'package:flutter/material.dart';
import 'package:gold/route/xfg_nav.dart';
import 'package:gold/utils/res.dart';
import 'package:gold/utils/xfg_color.dart';
import 'package:gold/utils/xfg_size.dart';
import 'package:gold/widgets/common_widgets.dart';
import 'package:gold/widgets/xfg_text.dart';

/// @description: 提现成功
/// @author tangzhentao
/// @created at 11:52 2024/12/15

class WithdrawalSuccessPage extends StatelessWidget {
  const WithdrawalSuccessPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: xfgAppbar(title: '提现成功'),
      body: Column(
        children: [
          SizedBox(height: XfgSize().size107, width: XfgSize().screenWidth),
          Image.asset(Res.imagesWithdrawalSuccess, width: XfgSize().size74, height:  XfgSize().size74),
          SizedBox(height: XfgSize().size26),
          XfgText('提现成功', fontSize: XfgSize().text18, color: XfgColor.text1D),
          SizedBox(height: XfgSize().size26),
          XfgText('我们将在3个工作日内处理您的提现申请', fontSize: XfgSize().text14, color: XfgColor.colorB5),
          SizedBox(height: XfgSize().size88),
          TextButton(
              onPressed: XfgNav.pop,
              style: xfgButtonStyle(Size(XfgSize().size355, XfgSize().size44), radius: XfgSize().size44),
              child: XfgText('确定', fontSize: XfgSize().text16, color: XfgColor.white, bold: FontWeight.bold)
          ),
        ],
      ),
    );
  }

}
